import { BrowserWindow } from 'electron';
import IElectronModule from './bg_base';
import test_file from './test_file'
import mysql_conn from './mysql_conn'
import sqlite_tool from './sqlite_tool'
import lowdb_easy from './lowdb_easy'
import printer_helper from './printer_helper';
import http_server from './http_server';
import shortcut from './shortcut';
import file_helper from './file_helper';


/** 后台 */
export default {
    /**
     * 后台初始化
     */
    init(win: BrowserWindow) {

        console.log('bg init start.');

        [
            test_file,
            mysql_conn,
            sqlite_tool,
            lowdb_easy,
            printer_helper,
            http_server,
            shortcut,
            file_helper,
        ].forEach((module: IElectronModule) => module.install(win));
    }
} 